import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ECharts from 'vue-echarts/components/ECharts.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import {axiosGet,axiosPost,axiosPatch} from './axios'
// 引入样式
import 'vue-easytable/libs/themes-base/index.css'
// 导入 table 和 分页组件
import {VTable,VPagination} from 'vue-easytable'

import moment from 'moment'


Vue.use(ElementUI)
Vue.component('echart', ECharts)
// 注册到全局
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)

Vue.config.productionTip = false
Vue.prototype.$axiosGet = axiosGet
Vue.prototype.$axiosPost = axiosPost
Vue.prototype.$axiosPatch = axiosPatch
Vue.prototype.$moment = moment

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
